package com.icloud.cer.rest.msg.bean;

import java.io.IOException;

import com.icloud.cer.rest.msg.AbsMsgObject;
import com.icloud.cer.rest.msg.BDataFilterInputStream;
import com.icloud.cer.rest.msg.DataFilterOutputStream;

/**
 * 服务器返回给客户端的注册响应
 * @author hok
 *
 */
public class RegistResponse  extends AbsMsgObject<RegistResponse>{
	public static final int BYTE_COUNT = 4;
	private int loginRet; 
	
	public int getLoginRet() {
		return loginRet;
	}

	public void setLoginRet(int loginRet) {
		this.loginRet = loginRet;
	}

	@Override
	protected void doSerialize(DataFilterOutputStream dos) throws IOException {
		dos.writeInt(loginRet);
	}

	@Override
	protected RegistResponse doDeserialize(BDataFilterInputStream dis) throws IOException {
		return this;
	}
	
}
